package com.polukeuro.app.client.events;

import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.user.client.ui.Widget;

public class InitStopEvent extends GwtEvent<InitHandler> {

	private static Type<InitHandler> TYPE = new Type<InitHandler>();
	
	private Widget w;

	public InitStopEvent(Widget w) {
		super();
		this.w = w;
	}

	public static Type<InitHandler> getType() {
		return TYPE;
	}
	
	@Override
	protected void dispatch(InitHandler handler) {
		handler.stopInitialisation(this);
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<InitHandler> getAssociatedType() {
		return TYPE;
	}
	
	public Widget getWidget() {
		return w;
	}

}
